package business;

import java.util.HashMap;
import java.util.Map;

/**
 * json返回类
 */
public class ApiData {
    public int code = 0;
    public String msg = "F";
    public Map data = new HashMap();
    public void success(){
        code = 1;
        msg = "操作成功";
    }
    public void fail(){
        code = 0;
        msg = "操作失败";
    }
}
